﻿using System;
using System.Collections.Generic;
using System.Web;
using PayRoller.Code;
using System.Web.SessionState;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using HySoft.Cash.Business;
using HySoft.Cash.Structure;
using System.Configuration;
using System.Web.Profile;
using System.Web.UI;
using System.Text;

namespace PayRoller.Manage
{
    public class Content : Page, IRequiresSessionState
    {
        // Fields
        protected HtmlForm form1;

        // Methods
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack == false)
            {
                this.PopupWindows();
            }
        }

        private void PopupWindows()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("<script type='text/javascript'>window.open('PopupWindow.aspx');window.open('PopupSendInvoice.aspx');</script>");
            this.ClientScript.RegisterClientScriptBlock(this.GetType(), "something", sb.ToString());
        }

        // Properties
        protected HttpApplication ApplicationInstance
        {
            get
            {
                return this.Context.ApplicationInstance;
            }
        }

        protected DefaultProfile Profile
        {
            get
            {
                return (DefaultProfile)this.Context.Profile;
            }
        }
    }

}
